package com.shop.cereshop.app.page.product;

import com.shop.cereshop.app.annotation.KeepLongAsNumber;
import com.shop.cereshop.commons.domain.product.SkuProject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @description:
 * @author lx
 * @date 2025/7/30 10:06
 * @version 1.0
 */
@Data
@ApiModel(value = "SkuVO", description = "规格返回数据")
public class SkuVO {

  @ApiModelProperty(value = "规格值code拼接字符串")
  private String value;

  @ApiModelProperty(value = "规格id")
  @KeepLongAsNumber
  private Long skuId;

  @ApiModelProperty(value = "规格名称")
  private String skuName;

  @ApiModelProperty(value = "规格值")
  private String skuValue;

  @ApiModelProperty(value = "售价")
  private BigDecimal price;

  @ApiModelProperty(value = "库存数量")
  @KeepLongAsNumber
  private Long stockNumber;

  @ApiModelProperty(value = "规格图片")
  private String image;

  @ApiModelProperty(value = "规格项目")
  private List<SkuProject> skuProjects;

}
